package indi.madoka.weeb.enums;

import indi.madoka.weeb.bean.update.message.GroupMessage;
import indi.madoka.weeb.bean.update.message.PrivateMessage;
import indi.madoka.weeb.bean.update.message.UpdateMessage;

/**
 * @author Arcueid
 */

public enum MessageType{
    GROUP_MESSAGE("group", GroupMessage.class),
    PRIVATE_MESSAGE("private", PrivateMessage.class);
    private final String value;
    private final Class<? extends UpdateMessage> updateMessageClass;

    MessageType(String value, Class<? extends UpdateMessage> updateMessageClass) {
        this.value = value;
        this.updateMessageClass = updateMessageClass;
    }

    public Class<? extends UpdateMessage> getUpdateMessageClass() {
        return updateMessageClass;
    }

    public String getValue() {
        return value;
    }
}
